package com.xlh.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Objects;

/**
 * 专业方向类型
 * <p>
 * Created by lx on 2019/1/28.
 */
@Getter
@AllArgsConstructor
public enum SchoolTypeEnum {

    BACHELOR_DEGREE("本科"),
    COLLEGE_DEGREE("专科");

    private String message;

    public static SchoolTypeEnum getEnum(String message) {
        for (SchoolTypeEnum typeEnum : SchoolTypeEnum.values()) {
            if (Objects.equals(typeEnum.getMessage(), message)) {
                return typeEnum;
            }
        }
        return null;
    }

}
